feat: Support CLI flag to discard env vars with empty value#736
feat: Support CLI flag to discard env vars with empty value#736yoonsio merged 1 commit intolivekit:mainfrom
Conversation
33d894d to
be2eb0c
Compare
|
@real-danm @yoonsio Guys any feedback on this? If you believe that it is not needed then just close it. |
real-danm
left a comment
There was a problem hiding this comment.
lgtm, thanks for the submission!
|
@real-danm @yoonsio @rektdeckard Guys, any chance of merging this PR? The problem it solved is not urgent or critical but super annoying. |
Instead of failing. This eliminates the need to wrap `lk` invocations with custom logic for manually filtering out such values. For example, this is a real script for deploying using `lk agent deploy`: ``` rm -f .env.lk sed '/^#/d' .env | grep -vE '^[A-Za-z_][A-Za-z0-9_]*=$' > .env.lk lk agent deploy --secrets-file .env.lk ```
533beac to
691fe52
Compare
📝 WalkthroughWalkthroughA new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (1)cmd/lk/agent.go (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (6)
✏️ Tip: You can disable this entire section by setting Comment |
Great, thanks! Made the requested changes. |
|
Perfect, thanks! |
Instead of failing.
This eliminates the need to wrap
lkinvocations with custom logic for manually filtering out such values. For example, this is a real script for deploying usinglk agent deploy:With the flag, this would be just:
Related:
.envcontains empty vars #678Summary by CodeRabbit
Release Notes
New Features
--ignore-empty-secretsCLI flag to skip empty secret values during processing instead of raising an error.Tests
✏️ Tip: You can customize this high-level summary in your review settings.